home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_07
/
8n07076b
< prev
next >
Wrap
Text File
|
1990-06-17
|
356b
|
18 lines
typedef int Boolean;
const Boolean TRUE = 1;
const Boolean FALSE = 0;
class Stack {
public:
Boolean operator == ( Stack &s)
{
Boolean r = (index == s.index);
if( index > 0)
for( int k = 0; (r == TRUE) && (k < index); k++ )
r = r && (data[k] == s.data[k]);
return r;
}
...